package com.guigu.tms.manager.controller.wj;

import com.guigu.tms.commons.entity.base.PdTruckLicense;
import com.guigu.tms.manager.feign.wj.TruckLicenseFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pdTruckLicense")
public class TruckLicenseController {

    @Autowired
    TruckLicenseFeignClient truckLicenseFeignClient;

    @GetMapping("/ShowTruckLicense")
    public List<PdTruckLicense> ShowTruckLicense(){
        return truckLicenseFeignClient.ShowTruckLicense();
    }
}
